package com.fbd.service;

import com.fbd.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class DicDistrictService {

    @Value("${map.key}")
    private String key;
    public ResponseResult initDicDistrict(){

        //1、拼装URL
        StringBuilder url = new StringBuilder();
        url.append("https://restapi.amap.com/v3/config/district?");
        url.append("keywords=北京");
        url.append("&subdistrict=2&");
        url.append("key="+key);

        String s = url.toString();
        System.out.println(s);
        return ResponseResult.success();
    }
}
